package com.chengqj.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.chengqj.service.IMainService;

public class Test {
	public static void main(String[] args) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("E:\\git\\chengqj\\src\\main\\resources\\spring-mvc.xml");
		IMainService impl = (IMainService) ctx.getBean("mainService"); 
System.out.println(impl);
	}
}
